package even

func Generate(min, max int) <-chan int {
	out := make(chan int)

	go func(){
		for i:=min + min%2; i <=max; i+=2 {
			out <- i
		}
		close(out)
	}()

	return out
}
